package com.zdyg.inputtask.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author ANGE
 * @since 2019-12-11
 */
public class BOrder extends Model<BOrder> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门ID
     */
    private Integer deptId;

    /**
     * 创建用户ID
     */
    private Integer userId;

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 用户类型：0平台用户，1中都用户
     */
    private Integer userType;

    /**
     * 订单类型：0saas订单，1平台订单
     */
    private Integer orderType;

    /**
     * 项目发布人姓名
     */
    private String peopleName;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 项目所在地
     */
    private String projectLocation;

    /**
     * 项目类型主键
     */
    private Integer projectTypeId;

    /**
     * 项目类型
     */
    private String projectType;

    /**
     * 项目分类
     */
    private String projectClassify;

    /**
     * 行业分类
     */
    private String industryClassify;

    /**
     * 支付分配方式:0信用发单，1交款发布，2支付乙方
     */
    private String payAllot;

    /**
     * 项目描述
     */
    private String projectDescribe;

    /**
     * 附件地址
     */
    private String accessoryUrl;

    /**
     * 逻辑删除(0未删除 1已删除)
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 最后修改时间
     */
    private LocalDateTime gmtModified;

    /**
     * 订单投标状态：0招标中，1已中标，2已完成
     */
    private Integer bidderState;

    /**
     * 是否催促订单：0否，1是
     */
    private Integer isUrge;

    /**
     * 是否分配项目：0未分配，1已分配，2存草稿
     */
    private Integer isAllotProject;

    /**
     * 是否创建合同：0否，1是
     */
    private Integer isContract;

    /**
     * 中标用户id
     */
    private Integer bidderId;

    /**
     * 省份
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 地址编码(h5)
     */
    private String locationCode;

    /**
     * 项目封面图
     */
    private String coverUrl;

    /**
     * 邮寄状态：0邮寄，1自取
     */
    private Integer isMail;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getPeopleName() {
        return peopleName;
    }

    public void setPeopleName(String peopleName) {
        this.peopleName = peopleName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectLocation() {
        return projectLocation;
    }

    public void setProjectLocation(String projectLocation) {
        this.projectLocation = projectLocation;
    }

    public Integer getProjectTypeId() {
        return projectTypeId;
    }

    public void setProjectTypeId(Integer projectTypeId) {
        this.projectTypeId = projectTypeId;
    }

    public String getProjectType() {
        return projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    public String getProjectClassify() {
        return projectClassify;
    }

    public void setProjectClassify(String projectClassify) {
        this.projectClassify = projectClassify;
    }

    public String getIndustryClassify() {
        return industryClassify;
    }

    public void setIndustryClassify(String industryClassify) {
        this.industryClassify = industryClassify;
    }

    public String getPayAllot() {
        return payAllot;
    }

    public void setPayAllot(String payAllot) {
        this.payAllot = payAllot;
    }

    public String getProjectDescribe() {
        return projectDescribe;
    }

    public void setProjectDescribe(String projectDescribe) {
        this.projectDescribe = projectDescribe;
    }

    public String getAccessoryUrl() {
        return accessoryUrl;
    }

    public void setAccessoryUrl(String accessoryUrl) {
        this.accessoryUrl = accessoryUrl;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getBidderState() {
        return bidderState;
    }

    public void setBidderState(Integer bidderState) {
        this.bidderState = bidderState;
    }

    public Integer getIsUrge() {
        return isUrge;
    }

    public void setIsUrge(Integer isUrge) {
        this.isUrge = isUrge;
    }

    public Integer getIsAllotProject() {
        return isAllotProject;
    }

    public void setIsAllotProject(Integer isAllotProject) {
        this.isAllotProject = isAllotProject;
    }

    public Integer getIsContract() {
        return isContract;
    }

    public void setIsContract(Integer isContract) {
        this.isContract = isContract;
    }

    public Integer getBidderId() {
        return bidderId;
    }

    public void setBidderId(Integer bidderId) {
        this.bidderId = bidderId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getIsMail() {
        return isMail;
    }

    public void setIsMail(Integer isMail) {
        this.isMail = isMail;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BOrder{" +
        "id=" + id +
        ", deptId=" + deptId +
        ", userId=" + userId +
        ", orderCode=" + orderCode +
        ", userType=" + userType +
        ", orderType=" + orderType +
        ", peopleName=" + peopleName +
        ", contactPhone=" + contactPhone +
        ", projectName=" + projectName +
        ", projectLocation=" + projectLocation +
        ", projectTypeId=" + projectTypeId +
        ", projectType=" + projectType +
        ", projectClassify=" + projectClassify +
        ", industryClassify=" + industryClassify +
        ", payAllot=" + payAllot +
        ", projectDescribe=" + projectDescribe +
        ", accessoryUrl=" + accessoryUrl +
        ", deleted=" + deleted +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        ", bidderState=" + bidderState +
        ", isUrge=" + isUrge +
        ", isAllotProject=" + isAllotProject +
        ", isContract=" + isContract +
        ", bidderId=" + bidderId +
        ", province=" + province +
        ", city=" + city +
        ", district=" + district +
        ", locationCode=" + locationCode +
        ", coverUrl=" + coverUrl +
        ", isMail=" + isMail +
        "}";
    }
}
